//
//  LWZHostPlayTableViewCell.m
//  MusicFM
//
//  Created by 王景欣 on 16/1/15.
//  Copyright © 2016年 LWZ. All rights reserved.
//

#import "LWZHostPlayTableViewCell.h"

@implementation LWZHostPlayTableViewCell

- (void)awakeFromNib {
    // Initialization code
}


- (void)setPlayModel:(LWZHostPlayModel *)playModel {
    if (_playModel != playModel) {
        _playModel = playModel;
    }
    
    self.playCountPic.image = [UIImage imageNamed:@"iconfont-bofang"];
    self.titleLabel.text = self.playModel.title;
    self.nickName.text= self.playModel.nickname;
    [self.coverSmall yy_setImageWithURL:[NSURL URLWithString:self.playModel.coverSmall] options:YYWebImageOptionProgressiveBlur];

//    self.palyCountNumLabel.text = [NSString stringWithFormat:@"%f", self.playModel.playtimes.floatValue / 10000.0 ];.
    self.palyCountNumLabel.text = [NSString stringWithFormat:@"%@", self.playModel.playtimes];
//    NSLog(@"%@", [NSString stringWithFormat:@"%f", self.playModel.playtimes.floatValue / 10000.0 ]);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
